package com.cosyhut.blocks.factory;

import com.jme.math.*;

import java.util.*;

public class MBlock {
	
	protected String _name;

	protected ArrayList<MNode> _geoms;
	protected ArrayList<MNode> _joints;
	protected ArrayList<MNode> _jointpoints;
	
	public MBlock(String name) {
		this._name = name;
		this._geoms = new ArrayList<MNode>();
		this._joints = new ArrayList<MNode>();
		this._jointpoints = new ArrayList<MNode>();
	}

	public void addGeom(String name, Vector3f position, Quaternion rotation) {
		this._geoms.add(new MNode(name, position, rotation));
	}
	public void addJoint(String name, Vector3f position, Quaternion rotation) {
		this._joints.add(new MNode(name, position, rotation));
	}
	public void addJointPoint(Vector3f position, Quaternion rotation) {
		this._jointpoints.add(new MNode(null, position, rotation));
	}
	//--------------------------------------------------------------------------
	public String getName() {
		return this._name;
	}

	public ArrayList<MNode> getGeoms() {
		return this._geoms;
	}
	public ArrayList<MNode> getJoints() {
		return this._joints;
	}
	public ArrayList<MNode> getJointPoints() {
		return this._jointpoints;
	}
}
